﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using static Volo.Abp.Identity.Settings.IdentitySettingNames;

namespace XfTech.SmartTms.Entities.Issues
{
    /// <summary>
    /// 该实体具有复合主建
    /// </summary>
    public class IssueLabel : Entity
    {
        public virtual Guid IssueId { get; private set; }
        public virtual Guid LabelId { get; private set; }
        
        public Issue Issue { get; set; } //导航属性
        public Label Label { get; set; } //导航属性

        protected IssueLabel()
        {
        }

        public IssueLabel(Guid issueId, Guid labelId)
        {
            IssueId = issueId;
            LabelId = labelId;
        }

        public override object[] GetKeys()
        {
            return new object[] { IssueId, LabelId };
        }
    }

}
